﻿<Window x:Class="DCClient.PropertyTableView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Справочник товаров" Height="472" Width="655">
    <Grid>
        <DataGrid 
            ItemsSource="{Binding Path=PropertyTableView}"
            AutoGenerateColumns="True" 
            Height="338" 
            HorizontalAlignment="Left" 
            Margin="0,83,0,0" 
            Name="PropertyDataGrid" 
            VerticalAlignment="Top"
            Width="609"  />
        <Button 
            Content="Сохранить" 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="10,41,0,0" 
            Name="Save" 
            VerticalAlignment="Top" 
            Width="75" 
            Command="{Binding Path= SaveCommand}" />
        <Button 
            Content="Добавить" 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="90,41,0,0" 
            Name="Add" 
            VerticalAlignment="Top" 
            Width="75" 
            Command="{Binding Path=AddingCommand}" />
        <Button 
            Content="Удалить" 
            Height="23" 
            HorizontalAlignment="Left" 
            Margin="170,41,0,0" 
            Name="DeletingButton" 
            VerticalAlignment="Top" 
            Width="75"
            Command="{Binding Path=DeletingCommand}" />
        <Button 
            Content="Отменить"
            Height="23"
            HorizontalAlignment="Left"
            Margin="250,41,0,0"
            Name="button2"
            VerticalAlignment="Top"
            Width="75"
            Command="{Binding Path=CancelCommand}" />
        <Menu 
            Margin="10,10,590,400">
            <MenuItem 
                Header="File"
                Width="37" 
                VerticalAlignment="Top"  
                RenderTransformOrigin="0,0381" 
                Height="32">
                <MenuItem 
                    Header="Синхронизация" 
                    Command="{Binding Path=SynchrinizateCommand}"/>
                <MenuItem 
                    Header="Экспорт в Excel"
                    Command="{Binding Path=ExportToExcelCommand}"/>
                <MenuItem 
                    Header="Импорт из XML"
                          Command="{Binding Path=Importfromxmlcommand}"/>
                <Separator/>
                <MenuItem Header="Exit" 
                    Command="{Binding Path=CancelCommand}"/>
            </MenuItem>
        </Menu>
        <Button Content="Синхронизация" Height="23" HorizontalAlignment="Left" Margin="441,41,0,0" VerticalAlignment="Top" Width="106" Command="{Binding Path=SynchrinizateCommand}" IsCancel="True" />
    </Grid>
</Window>
